package com.sau.pixelcart.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor  //生成无参构造
@AllArgsConstructor //生成有参构造
public class ProductDTO implements Serializable {

    private String id;
    private String name;
    private String description;
    private String code;
    private BigDecimal price;
    private String status;
    private String categoryId;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    private String imageUrl;
    private Integer stock;
    private Long version;
}
